#ifndef LIB_H
#define LIB_H
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

#include "gd32f30x.h"

void Lib_Timer_Start(uint8_t *Is_Timer_Start);
void Lib_Timer_Stop(uint32_t *cur_time, uint8_t *Is_Timer_Start);
void Lib_Timer_Counter(uint32_t *cur_time, uint8_t Is_Timer_Start);

uint16_t Lib_CRC16Check(uint8_t *pBuf, uint16_t usLen);
void Lib_memcpy(uint16_t* dest,uint16_t* src,uint16_t len);
int Lib_memcmp(uint16_t* _Buf1,uint16_t* _Buf2,uint16_t len);
#endif /* LIB_H */
